package com.dms.modules.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 社区评论详情数据传输对象
 */
@Data
@ApiModel(value = "社区评论详情DTO", description = "社区评论详情数据传输对象")
public class CommunityCommentDetailDTO {
    
    @ApiModelProperty("评论ID")
    private Long id;
    
    @ApiModelProperty("帖子ID")
    private Long postId;
    
    @ApiModelProperty("评论用户ID")
    private Long userId;
    
    @ApiModelProperty("评论用户昵称")
    private String userNickname;
    
    @ApiModelProperty("评论用户头像")
    private String userAvatar;
    
    @ApiModelProperty("父评论ID")
    private Long parentId;
    
    @ApiModelProperty("父评论用户ID")
    private Long parentUserId;
    
    @ApiModelProperty("父评论用户昵称")
    private String parentUserNickname;
    
    @ApiModelProperty("评论内容")
    private String content;
    
    @ApiModelProperty("点赞数")
    private Integer likeCount;
    
    @ApiModelProperty("状态：0-正常，1-已删除")
    private Integer status;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("当前用户是否点赞")
    private Boolean isLiked;
    
    @ApiModelProperty("子评论列表")
    private List<CommunityCommentDetailDTO> children;
} 